﻿@{
    Layout = "~/Views/Shared/_Html.cshtml";
    var obj = new Vit.Web.Models.WebPage();
    string viewName = ViewBag.ViewName ?? "List";
}

@using (Html.BeginForm(null, null, FormMethod.Post, new { id = "filter-form", name = "filter-form" }))
{
    @Html.Partial("FilterTemplates/Table", obj)
    <input type="submit" style="display: block" value="搜索" />
    <a href="/Page/Create" class="dialog">Add Page</a>
    <a href="javascript:void();" onclick="Submit('list-form');">Delete Page</a>
}
@using (Html.BeginForm("Delete", null, FormMethod.Post, new { id = "list-form", name = "list-form" }))
{
    @Html.DisplayForModel(viewName)
}
